package com.hengpeng.itfinbase.constants;

/**
 * <pre>
 * 系统错误代码
 * </pre>
 * @author zhaojitao
 * @version 1.0, 2015-05-29
 */
public final class RespCodeConstants
{
	/**
	 * 公共错误代码
	 */
	public final static class CommonCode
	{
		public final static String TRANS_SUC = "000";//

		public final static String TRANS_SUC_MSG = "成功";//

		public final static String TRANS_FAIL = "9999";//

		public final static String TRANS_FAIL_MSG = "失败";//

		public final static String DATA_NOT_VALIDATA = "9000";// 前台传入数据没有通过验证

		public final static String DATA_NOT_FOUND = "9001";// 记录未找到

		public final static String DATA_STATE_ERROR = "9002";// 记录状态错误

		public final static String DATA_REFUNDMENTMONEY_ERROR = "9003";// 退款错误

		public final static String TRANSMESSAGE_ERRCODE_DIGESTERROR = "9006";// 数字签名错误

		public final static String TRANSMESSAGE_ERRMSG_DIGESTERROR = "数字签名错误";

		public final static String TRANSMESSAGE_ERRCODE_UNKOWN = "9999";// 未收到响应消息

		public final static String TRANSMESSAGE_ERRMSG_NORETURNMSG = "未收到响应消息";

		public final static String TRANSMESSAGE_ERRCODE_DEALING = "999";// 处理中

	}

	/**
	 * 用户模块错误代码
	 */
	public final static class MemberCode
	{
		public final static String ACCOUNT_NOT_FOUND = "6001";// 帐户不存在
		
		public final static String USERNAME_HAD_EXIST = "6005";// 用户名已经存在

		public final static String EMAIL_HAD_EXIST = "6006";// 邮箱已经存在

		public final static String MOBILE_HAD_EXIST = "6007";// 手机号码已经存在

		public final static String ACCOUNT_INPUTPASSWD_ERROR = "6008";// 密码输入不正确

		public final static String PROTECT_ANSWER_ERROR = "6009";// 密保答案错误

		public final static String RESET_PASS_URL_ERROR = "6010"; // 找回密码链接错误

		public final static String RESET_PASS_URL_INVALIDATION = "6011";// 找回密码链接已经过期

		public final static String MEMBER_NOT_FOUND = "6012";// 不存在该用户

		public final static String MEMBER_HAD_LOCK = "6014";// 用户被锁定

		public final static String MEMBER_HAD_CLOSE = "6015";// 用户已经被关闭

		public final static String MEMBER_STATUS_EXCEPTION = "6016";// 用户状态不正确

		public final static String MEMBER_LOGIN_FAILED = "6017";// 登陆失败

		public final static String MEMBER_CHECKCODE_FAILED = "6018";// 验证码输入有误

		public final static String MEMBER_REGISTER_AFFIRM_OVER = "6019";// 用户注册邮件已确认

		public final static String MEMBER_REGISTER_AFFIRM_CODE_ERROR = "6020";// 用户注册邮件校验码错误

		public final static String MEMBER_REGISTER_AFFIRM_CODE_STALE = "6021";// 用户注册邮件校验码过期

		public final static String MEMBER_REGISTER_AFFIRM_CODE_INVALID = "6022";// 用户注册邮件校验码无效

		public final static String MEMBER_FIND_PASS_AFFIRM_CODE_INVALID = "6023";// 用户找回密码邮件校验码无效

		public final static String MEMBER_USERNAME_FORMAT_ERROR = "6026";// 用户名格式错误

		public final static String SUBSCRIBE_URL_INVALIDATION = "6028";// 邮件订阅链接已经过期

		public final static String MEMBER_SUBSCRIBE_AFFIRM_CODE_INVALID = "6029";// 用户邮件订阅邮件校验码无效

		public final static String MEMBER_SUBSCRIBE_AFFIRM_OVER = "6030";// 用户邮件订阅邮件已确认

		public final static String MEMBER_MOBILE_CODE_EXPIRED = "6033";// 手机验证码已过期

		public final static String MEMBER_MOBILE_CODE_INVALID = "6034";// 手机验证码无效
		
		public final static String MEMBER_REALNAME_CHECK_NO = "6035";// 未实名认证
		
		public final static String MEMBER_REALNAME_NOT_ACTIVE = "6036";// 用户尚未激活
	}

	public final static class AccountCode
	{
		public final static String ACCOUNT_ERROR = "4001";// 计算资金出现错误

		/**
		 * 取现失败
		 */
		public final static String CASH_ERRCODE_FAIL = "400";
	}

	/**
	 * <pre>
	 * 还款模块代码
	 * </pre>
	 * @author weiyuan
	 * @version 1.0, 2015年6月24日
	 */
	public final static class RepaymentCode
	{

		public final static String REPAYMENT_BACKMONEYERROR = "5001";// 返回金额和请求金额不相符

		public final static String REPAYMENT_BACKMONEYERROR_MSG = "返回金额和请求金额不相符";// 返回金额和请求金额不相符

		public final static String REPAYMENT_NOTFOUND_RECOVER = "5002";// 追偿信息不存在或状态异常

		public final static String REPAYMENT_NOTFOUND_RECOVER_MSG = "追偿信息不存在或状态异常";
	}

	/**
	 * <pre>
	 * 标的相关代码
	 * </pre>
	 * @author weiyuan
	 * @version 1.0, 2015年6月24日
	 */
	public final static class BorrowInfoCode
	{
		/**
		 * 交易错误代码: 标的录入已经存在 {@value}
		 * @value 395
		 */
		public final static String TRANSMESSAGE_ERRCODE_ADDBID_EXIST = "395";

		/**
		 * 交易错误代码: 重复放款的请求 ,标识前面一笔的放款已经成功{@value}
		 * @value 345
		 */
		public final static String TRANSMESSAGE_ERRCODE_LOANED = "345";

		public final static String BORROWINFO_UNKONW = "301";// 原始借款标的信息不存在或状态异常

		public final static String BORROWINFO_UNKONW_MSG = "原始借款标的信息不存在或状态异常";
	}

	/**
	 * <pre>
	 * 投标相关代码
	 * </pre>
	 * @author weiyuan
	 * @version 1.0, 2015年6月24日
	 */
	public final static class InvestCode
	{
		public final static String INVEST_UNKONW = "201";// 原始投标信息不存在或状态异常

		public final static String INVEST_UNKONW_MSG = "原始投标信息不存在或状态异常";
	}

}
